package about_map

import "fmt"

var ma =map[int]string{1:"Sam",2:"Jack"}

var empty_map =make(map[int]string, 10)

func Test()  {
	// fmt.Println(ma)
	empty_map[1]="hellow map"
	fmt.Println(empty_map,len(empty_map))
	advance(ma)
}

func advance(ma map[int]string)  {
	for k, v := range ma {
		fmt.Println("key=",k,"value=",v)
	}
	fmt.Printf("%T\n",ma)
}